# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-simplekv
_pkgname=simplekv
pkgver=0.14.1
pkgrel=7
pkgdesc='A key-value storage for binary data, support many backends.'
arch=('any')
url='https://pypi.org/project/simplekv/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('03e6a261eb3cc08d567368c5bc508599abc1223549a534c4c4f06de30ca96e9846f2b810ae146353bb999eb24554b8d13da0ec3538427c941f9dc849ddbe0e8c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

